/*
 * UserMapper.java
 * Copyright 2018 Qunhe Tech, all rights reserved.
 * Qunhe PROPRIETARY/CONFIDENTIAL, any form of usage is subject to approval.
 */

package com.bearox.trans.mapper;

import com.bearox.trans.data.domain.User;
import org.springframework.stereotype.Component;

/**
 * @author Bearox
 */
@Component
public interface UserMapper {
    /**
     * 注册用户
     * @param user
     * @return
     */
    int register(final User user);

    /**
     * 根据用户名获取用户
     * @param name
     * @return
     */
    User getUserByName(final String name);
}
